package de.g18.it0a.jlaser.exception;

import de.g18.it0a.jlaser.domain.RoomConfiguration;


public class MalformedConfigurationException extends Exception {

    private static final long serialVersionUID = 1L;

    private final RoomConfiguration config;


    public MalformedConfigurationException(RoomConfiguration aConfig) {
        this(aConfig, null);
    }

    public MalformedConfigurationException(RoomConfiguration aConfig, Throwable aCause) {
        super("The configuration " + aConfig.toString() + " contains invalid data!", aCause);
        config = aConfig;
    }

    public RoomConfiguration getConfig() {
        return config;
    }
}
